EXECUTE FILE

This command will shell execute a file.

  Syntax
EXECUTE FILE Filename, Commandline, Directory
EXECUTE FILE Filename, Commandline, Directory, Wait Flag
  Parameters
Filename
String
The file to execute
Commandline
String
The commandline is used to pass additional data into the file being executed like a file name to use
Directory
String
The directory is used to optionally specify a directory other than the current directory
Wait Flag
Integer
If the optional Wait Flag value is set to one, then the application will wait until the executable has finished

  Returns

This command does not return a value.

  Description

The commandline is used to pass additional data into the file being executed. The directory is used to optionally specify a directory other than the current directory. The file must exist or the command will fail. Passing a document, rather than an executable as the filename will cause the document to be opened. If the optional Wait Flag value is set to one, then the application will wait until the executable has finished.

  Example Code
cls
execute file "iexplore.exe","","C:\Program Files\Internet Explorer",1
do
loop
end
  See also

FILE Commands Menu
Index